<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\NwYbzZyjController;
use App\Http\Controllers\NwYbzYjController;
use App\Http\Controllers\NwYbzGzclController;
use App\Http\Controllers\NwYbzYptUserinfoController;
#use App\Http\Controllers\Api\NwYbzZyjController; // 引入控制器的完全限定名称

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/


// 然后在路由定义中使用完整类名
Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});



#运营一本账
Route::any('/ybz', [NwYbzZyjController::class, 'index']);
Route::get('/ybz/search_ybz', [NwYbzZyjController::class, 'search_ybz']);
Route::get('/ybz/ybzChange', [NwYbzZyjController::class, 'ybzChange']);
Route::post('/ybz/ybzCurd', [NwYbzZyjController::class, 'ybzCurd']);
Route::put('/ybz/ybzEdit', [NwYbzZyjController::class, 'ybzEdit']);
Route::delete('/ybz/ybzDelete', [NwYbzZyjController::class, 'ybzDelete']);
#硬件一本账
Route::delete('/yjybz/ybzDelete', [NwYbzYjController::class, 'ybzDelete']);
Route::get('/yjybz/ybzChange', [NwYbzYjController::class, 'ybzChange']);
Route::get('/yjybz/search_ybz', [NwYbzYjController::class, 'search_ybz']);
Route::post('/yjybz/ybzCurd', [NwYbzYjController::class, 'ybzCurd']);
Route::put('/yjybz/ybzEdit', [NwYbzYjController::class, 'ybzEdit']);
#故障处理
Route::delete('/gzclybz/ybzDelete', [NwYbzGzclController::class, 'ybzDelete']);
Route::get('/gzclybz/ybzChange', [NwYbzGzclController::class, 'ybzChange']);
Route::get('/gzclybz/search_ybz', [NwYbzGzclController::class, 'search_ybz']);
Route::post('/gzclybz/ybzCurd', [NwYbzGzclController::class, 'ybzCurd']);
Route::put('/gzclybz/ybzEdit', [NwYbzGzclController::class, 'ybzEdit']);
#云平台人员信息
Route::delete('/userinfo/ybzDelete', [NwYbzYptUserinfoController::class, 'ybzDelete']);
Route::get('/userinfo/ybzChange', [NwYbzYptUserinfoController::class, 'ybzChange']);
Route::get('/userinfo/search_ybz', [NwYbzYptUserinfoController::class, 'search_ybz']);
Route::post('/userinfo/ybzCurd', [NwYbzYptUserinfoController::class, 'ybzCurd']);
Route::put('/userinfo/ybzEdit', [NwYbzYptUserinfoController::class, 'ybzEdit']);


